home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1999 March
/
EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso
/
earcd
/
devel
/
vbcc-68k-src
/
machines
/
amiga68k
/
libsrc
/
stdlib
/
system.c
< prev
Wrap
C/C++ Source or Header
|
1999-01-01
|
448b
|
20 lines
#include <utility/TagItem.h>
#include <dos/dos.h>
#include <exec/libraries.h>
#include <proto/dos.h>
static struct TagItem _systemlist[]={ { TAG_END,0 } }; /* No Tags */
int system(const char *string)
{
if(string==NULL){
return 1;
}else{
if(((struct Library *)DOSBase)->lib_Version>=36)
return SystemTagList((STRPTR)string,_systemlist);
else
return(Execute((STRPTR)string,0L,0L));
}
}